﻿
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>NFinal配置</title>
    <script type="text/javascript" src="../Content/highlighter/scripts/shCore.js"></script>
    <script type="text/javascript" src="../Content/highlighter/scripts/shBrushXml.js"></script>
    <link type="text/css" rel="stylesheet" href="../Content/highlighter/styles/shCoreDefault.css"/>
    <script type="text/javascript">SyntaxHighlighter.all();</script>
</head>
<body>
    <h3>NFinal配置</h3>
    <p>
        1.安装时NFinal配置即可完成.
    </p>
    <p>
        2.为了防止数据库错误而导致的运行失败.
        安装时,程序会把原有的ConnectionString给注释掉.
    </p>
    <p>
        以下只是配置说明,这些配置由AutoConfig.exe自动完成,无须手动配置.
    </p>
    <pre class="brush: xml;">
      <appSettings>
        <!--模块设置,多模块使用','号分隔-->
        &lt;add key="Apps" value="App"/>
        <!--是否启动自动生成-->
        &lt;add key="AutoGeneration" value="false"/>
        <!--禁用VS的浏览器链接功能,此功能会在页面中生成冗余代码-->
        &lt;add key="vs:EnableBrowserLink" value="false"/>
      </appSettings>
    </pre>
    <pre class="brush: xml;">
    <!--IIS6下.net Handler和Module重写配置-->
      &lt;system.web>
        &lt;httpHandlers>
          &lt;add verb="*" path="*.htm" type="NFinal.Handler.HandlerFactory"/>
        &lt;/httpHandlers>
        &lt;httpModules>
          &lt;add name="ModuleRewriter" type="NFinal.URLRewriter.ModuleRewriter"/>
        &lt;/httpModules>
        &lt;compilation debug="true"/>
      &lt;/system.web>
    </pre>
    <pre class="brush: xml;">
      <!--IIS7 .net Handler和Module重写配置-->
      &lt;system.webServer>
        &lt;urlCompression doStaticCompression="false" doDynamicCompression="false"/>
        &lt;validation validateIntegratedModeConfiguration="false"/>
        &lt;handlers>
          &lt;add name="NFinalHandlerFactory" verb="*" path="*.htm" type="NFinal.Handler.HandlerFactory"/>
        &lt;/handlers>
        &lt;modules>
          &lt;add name="ModuleRewriter" type="NFinal.URLRewriter.ModuleRewriter"/>
        &lt;/modules>
      &lt;/system.webServer>
    </pre>
</body>
</html>
